-- GENERATED SPELL FOR [Talonpriest Zellek] --


function spell0_23068(pUnit, Event) --@Drain Life,Drain--
pUnit:FullCastSpellOnTarget(17173,pUnit:GetRandomPlayer(0))
pUnit:RegisterEvent('Sorts_23068', 5000, 1)
end

function spell1_23068(pUnit, Event) --@Head Smash,n/a--
pUnit:FullCastSpellOnTarget(15652,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23068', 2329, 1)
end

function Sorts_23068(pUnit, Event)
local choix_sorts_23068 = math.random(0, 1)
if choix_sorts_23068 == 0 then
pUnit:RegisterEvent('spell0_23068', 1, 1)
end
if choix_sorts_23068 == 1 then
pUnit:RegisterEvent('spell1_23068', 1, 1)
end
end

function mob23068_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23068', math.random(1500, 3000), 1)
end

function mob23068_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23068_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23068_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23068, 1, 'mob23068_Action')
RegisterUnitEvent(23068, 2, 'mob23068_Leave')
RegisterUnitEvent(23068, 3, 'mob23068_Kill')
RegisterUnitEvent(23068, 4, 'mob23068_Die')
